package com.angel.service;

import java.util.List;
import com.angel.bean.Employee;
import com.angel.bean.dto.SocketEmployeeDto;
import com.github.pagehelper.Page;

public interface EmployeeService{

    int insert(Employee employee);

    int insertSelective(Employee employee);

    int insertList(List<Employee> employees);

    int delete(Employee employee);

    int update(Employee employee);

    List<Employee> findEmployee(Employee employee);

    List<Employee> searchEmployee(Employee employee);

    Employee findOne(Employee employee);

    /**
     * 分页查询当前员工
     * @param pageNo 页数
     * @param pageSize 每页显示大小
     * @return 分页后的员工
     */
    Page<Employee> findEmployeeByPage(int pageNo, int pageSize);

    SocketEmployeeDto findEmployeeAndType(Employee employee);


}
